import ezAuth from "@/assets/js/ez-auth";

export default {
    data() {
        return {
            auth_add: ezAuth.reg("+pm.FeeHouse.add", "物业费_新增"),//新增
            auth_copy: ezAuth.reg("+pm.FeeHouse.copy", "物业费_复制"),//复制
            auth_edit: ezAuth.reg("+pm.FeeHouse.edit", "物业费_编辑"),//编辑
            auth_del: ezAuth.reg("-pm.FeeHouse.del", "物业费_删除"),//删除
            auth_view: ezAuth.reg("+pm.FeeHouse.view", "物业费_查看"),//查看
        }
    },
    directives: {
        auth: {
            bind: ($el, binding, vnode, prevVnode) => {
                ezAuth.checkAllow(binding.value) ? $el.style.display = "normal" : $el.style.display = "none"
            }
        }
    }
}